home *** CD-ROM | disk | FTP | other *** search
/ 600 Games / 600games.iso / Aventura / Squeaky.swf / scripts / frame_110 / PlaceObject2_459_82 / CLIPACTIONRECORD onClipEvent(enterFrame).as < prev    next >
Encoding:
Text File  |  2005-08-04  |  481 b   |  23 lines

  1. onClipEvent(enterFrame){
  2.    _root.oil1._x = this._x;
  3.    if(_root.hero._y > 345 && _root.alive == "yes")
  4.    {
  5.       if(this._x < _root.hero._x)
  6.       {
  7.          this._x += 5;
  8.          this.gotoAndStop("right");
  9.       }
  10.       else
  11.       {
  12.          this._x -= 5;
  13.          this.gotoAndStop("left");
  14.       }
  15.       if(_root.hero.shape.hitTest(this.heart))
  16.       {
  17.          _root.health.nextFrame();
  18.          xmoving = 0;
  19.          _root.kill.start();
  20.       }
  21.    }
  22. }
  23.